// stairs
// using stairs takes you to another area
// Cell 0 - Zone to take to
// Cell 1 - Direction to enter it from (0 - from north, 1 - west, 2 - south, 3 - east)
// Cell 2,3 - A stuff done flag. If one is given, this flag must be nonzero to let party use stairs/
// Cell 4 - If the flag prevent party from using boat, starts a convo at this node.

beginobjectscript; // talking object

variables;

body;

beginstate INIT_STATE;
	break;

beginstate DEAD_STATE;
	break;

beginstate START_STATE; 
	break;

beginstate USE_STATE;
	if ((get_memory_cell(2) > 0) || (get_memory_cell(3) > 0)) {
		if (get_sdf(get_memory_cell(2),get_memory_cell(3)) == 0) {
			begin_talk_mode(get_memory_cell(4));
			}
		}

	change_level(get_memory_cell(0),get_memory_cell(1));
break;
